package cn.source.zk.mapper;

import cn.source.common.core.domain.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ZkCustomerMapper {

    /**
     * 客户分页列表
     * @param customer
     * @return
     */
    List<Customer> selectPageList(Customer customer);

    /**
     * 新增客户
     * @param customer
     * @return
     */
    int insert(Customer customer);

    /**
     * 根据num查询客户
     * @param num
     * @return
     */
    Customer getByNum(Long num);

    /**
     * 修改客户
     * @param customer
     * @return
     */
    int update(Customer customer);

    /**
     * 删除客户
     * @param nums
     * @return
     */
    int del(@Param("nums") List<Long> nums);
}
